package com.zcxy.fast.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zcxy.fast.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @author zcc
 * @email 860474958@qq.com
 * @date 2020-07-01
 */
@Data
@TableName("sys_attachment")
@ApiModel(value = "SysAttachment", description = "实体对象")
public class SysAttachment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "", required = false)
    @TableId(type = IdType.UUID)
    @Length(max = 32, message = "id 超出最大长度32")
    private String id;

    @ApiModelProperty(value = "对应业务的uuid", required = false)
    @Length(max = 32, message = "fileUuid 超出最大长度32")
    private String fileUuid;

    @ApiModelProperty(value = "附件名称", required = false)
    @Length(max = 255, message = "fileName 超出最大长度255")
    private String fileName;

    @ApiModelProperty(value = "文件oss外网url", required = false)
    @Length(max = 512, message = "fileOssUrl 超出最大长度512")
    private String fileOssUrl;


}
